<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/favicon.ico" >
<LINK rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.7/iconfont.css" rel="stylesheet" type="text/css" />

<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>搜索列表</title>
</head>
<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> <a _href="welcome.html" class="fun-toindex" href="javascript:;">首页</a> 
	<a href="search-list.html" class="c-gray en">&gt; 搜索管理</a> <span class="c-gray en">&gt;</span> 搜索列表 
	<a class="btn btn-success radius r mr-20 reload" style="line-height:1.6em;margin-top:3px" href="javascript:;" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
	<span class="r" style="margin-top: -2px; box-sizing: border-box;">
	   

	    <span style="position:relative">
	        <input type="text" name="k" id="k" placeholder="关键字" style="width:250px" class="input-text">
	        <i class="Hui-iconfont i-close" id="inputclear">&#xe706;</i>
	    </span>

	    <button name="" id="search" class="btn btn-success"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>

	</span>
</nav>
<div class="pd-20">
	<table class="table table-border table-bordered table-bg">
		<thead>
			<tr>
				<th scope="col" colspan="9">搜索列表</th>
			</tr>
			<tr class="text-c sort0">
				<th width="25" class="valueid"><input type="checkbox" name="" value=""></th>
				<th width="40" class="fun-sort2" data-name="search_id" data-flag="0">ID</th>
				<th width="100">用户名</th>
				<th>搜索内容</th>

				
				<th width="130">搜索时间</th>
				<!-- <th width="100">是否已开启</th> -->
				<!-- <th width="100">操作</th> -->
			</tr>
		</thead>
		<tbody id="content_sp">

		</tbody>
	</table>

	<div class="cl pd-5 bg-1 bk-gray mt-20" id="pagelist">
		<!-- <a href="javascript:;" class="btn btn-warning l mr-10 mt-5 radius fun-all" data-type="stop"><i class="Hui-iconfont">&#xe6de;</i> 批量关闭</a> 
		<a href="javascript:;" class="btn btn-success l mr-10 mt-5 radius fun-all" data-type="start"><i class="Hui-iconfont">&#xe603;</i> 批量开启</a> 
		<a href="javascript:;" class="btn btn-danger l mr-10 mt-5 radius fun-all" data-type="del"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>  
		<a href="javascript:;" onclick="_open('添加搜索','admin-add.html','40%','50%',false)" class="btn btn-primary radius l mt-5 mr-20"><i class="Hui-iconfont">&#xe600;</i> 添加搜索</a>  -->
		<span class="r" style="line-height: 40px;" id="dataall"></span> 
		<span class="r" style="line-height: 40px;" id="page"></span> 
	</div>

</div>
<!-- 列表模版 -->
<script id="test" type="text/html">
<% for (x in list) { %>
	<tr class="text-c adminlist sort1">
		<td class="valueid"><input type="checkbox" value="<%=list[x].search_id%>" name=""></td>
		<td><%=list[x].search_id%></td>
		<td><%=list[x].user_name%> (<%=list[x].uid%>)</td>
		<td class="text-l fun-search" data-name="k" data-value="<%=list[x].search_k%>"><%=list[x].search_k%></td>
		<td><%=list[x].time%></td>
		<!-- <td class="td-status">
			<div class="bs-docs-example btn-isshow">
				<input type="checkbox" class="switch fun-start-stop" <%if(list[x].admin_state==1){ %>checked<% } %>/>
			</div>
		</td> -->
		<!-- <td class="td-manage f-18">
			
				
				<a title="编辑" href="javascript:;" onclick="_open('搜索编辑','admin-add.html?editid=<%=list[x].search_id%>','60%','50%',false)" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> 
				<a style="text-decoration:none" class="ml-5 fun-del" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i>
			
		</td> -->
	</tr>
<% } %>
</script>	
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>  
<script type="text/javascript" src="lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="js/H-ui.js"></script> 
<script type="text/javascript" src="js/H-ui.admin.js"></script> 
<script type="text/javascript" src="js/s.js"></script> 
<script type="text/javascript" src="js/template-native.js"></script> 
<script type="text/javascript" src="lib/laypage/laypage.js"></script>
<script src="/Manage/js/lazyload.min.js"></script>
<script type="text/javascript">
var API=API_SEARCH_TONGJI;
var kk=API_SEARCH_TONGJI;
var orderby='';
var search='';

loaddata(API,1);
$("#search").click(function(){
    kk=API+"?";
    
    var param=[
        'k='+encodeURI(document.querySelector('input[name=k]').value),
        // 'sort='+document.querySelector('select[name=sort]').value,
    ];
    search=param.join('&');
    kk=kk+search+'&'+orderby;
	loaddata(kk,1);   
})
</script>
</body>
</html>